package framework

import (
	"gitee.com/kristas/booting-go/framework/application"
	"gitee.com/kristas/booting-go/framework/core/bean"
	"gitee.com/kristas/booting-go/framework/core/ioc/bean_factory"
)

func Application() *application.Application {
	return application.NewApplication()
}

func Component(beans ...bean.Bean) {
	for i := range beans {
		bean_factory.GetApplicationContext().RegisterBean(beans[i])
	}
}
